<%@include file="../taglibs.jsp" %>
<stripes:layout-render name="/layout/baseview.jsp">
    <stripes:layout-component name="head">
        <jsp:element name="meta">
            <jsp:attribute name="name">
                <c:out value="description"/>
            </jsp:attribute>
            <jsp:attribute name="content">
                <fmt:message key="page.registeracc.description"/>
            </jsp:attribute>
        </jsp:element>
        <jsp:element name="meta">
            <jsp:attribute name="name">
                <c:out value="keywords"/>
            </jsp:attribute>
            <jsp:attribute name="content">
                <fmt:message key="page.main.keywords"/>
            </jsp:attribute>
        </jsp:element>
        <title>
            <fmt:message key="page.registeracc.pagetitle"/>
        </title>
    </stripes:layout-component>
    <stripes:layout-component name="content">
        <stripes:label name="labelRegisterResumeAccount"/>
        <br/>
        <stripes:form action="/account/RegisterResumeAccount.action">
            <table class="form">
                <stripes:hidden name="account.uuid"/>
                <!--userName -->
                <tr>
                    <td>
                        <stripes:label name="labelUsername"/>
                    </td>
                    <td>
                        <stripes:text name="account.userName"/>
                    </td>
                    <td>
                        <div class="fielderror">
                            <stripes:errors field="account.userName"/>
                        </div>
                    </td>
                </tr>

                <!--password -->
                <tr>
                    <td>
                        <stripes:label name="labelPassword"/>
                    </td>
                    <td>
                        <stripes:password name="account.password"/>
                    </td>
                    <td>
                        <div class="fielderror">
                            <stripes:errors field="account.password"/>
                        </div>
                    </td>
                </tr>

                <!--password reType -->
                <tr>
                    <td>
                        <stripes:label name="labelRePassword"/>
                    </td>
                    <td>
                        <stripes:password name="account.rePassword"/>
                    </td>
                    <td>
                        <div class="fielderror">
                            <stripes:errors field="account.rePassword"/>
                        </div>
                    </td>
                </tr>

                <!--firstName -->
                <tr>
                    <td>
                        <stripes:label name="labelFirstName"/>
                    </td>
                    <td>
                        <stripes:text name="resumeAccountDetails.firstName"/>
                    </td>
                    <td>
                        <div class="fielderror">
                            <stripes:errors field="resumeAccountDetails.firstName"/>
                        </div>
                    </td>
                </tr>

                <!--lastName -->

                <tr>
                    <td>
                        <stripes:label name="labelLastName"/>
                    </td>
                    <td>
                        <stripes:text name="resumeAccountDetails.lastName"/>
                    </td>
                    <td>
                        <div class="fielderror">
                            <stripes:errors field="resumeAccountDetails.lastName"/>
                        </div>
                    </td>
                </tr>

                <!--picture -->

                <tr>
                    <td>
                        <stripes:label name="labelPicture"/>
                    </td>
                    <td>
                        <stripes:file name="photo.pictureBean"/>
                    </td>
                    <td>
                        <div class="fielderror">
                            <stripes:errors field="photo.pictureBean"/>
                        </div>
                    </td>
                </tr>
                <stripes:hidden name="account.accountType" value="ROLE_RESUME" />
            </table>
            <stripes:submit name="registerNewAccount"/>
        </stripes:form>
    </stripes:layout-component>
</stripes:layout-render>